package com.foton.mybatis.handler.impl;

import com.foton.mybatis.handler.StatementHandler;
import com.foton.mybatis.model.MappedStatement;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @Author RenPu
 * @Date 2023/3/30 11:42
 * @Version 1.0
 * @Description:
 **/
public class SimpleStatementHandler implements StatementHandler {

    private final MappedStatement mappedStatement;

    public SimpleStatementHandler(MappedStatement mappedStatement) {
        this.mappedStatement=mappedStatement;
    }

    @Override
    public PreparedStatement prepare(Connection connection) {
        return null;
    }

    @Override
    public ResultSet query(PreparedStatement preparedStatement) throws SQLException {
        return null;
    }

    @Override
    public void update(PreparedStatement preparedStatement) throws SQLException {
       preparedStatement.executeQuery();

    }
}
